<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>模型效果分析</title>
    <!-- 引入 Google Fonts 中的现代字体 -->
    <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap" rel="stylesheet">
    <!-- 引入 Font Awesome -->
    <link href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css" rel="stylesheet">

    <style>
        /* 通用样式重置 */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html,
        body {
            width: 100%;
            height: 100%;
            font-family: 'Poppins', sans-serif;
            background: linear-gradient(135deg, #e0f7fa, #f4f4f9);
        }

        /* 导航栏样式 */
        .container .navbar {
            width: 100%;
            height: 80px;
            background: linear-gradient(45deg, #0084ff, #00c3ff);
            display: flex;
            align-items: center;
            padding: 0 40px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
            transition: background 0.3s ease;
            position: relative;
            z-index: 10;
            gap: 25px;
        }

        .container .navbar a {
            display: inline-block;
            width: auto;
            padding: 12px 20px;
            color: white;
            font-size: 18px;
            font-weight: 500;
            text-decoration: none;
            text-align: center;
            transition: all 0.3s ease;
            border-radius: 8px;
            position: relative;
        }

        .container .navbar a:hover {
            background-color: #9acd32;
            transform: translateY(-2px);
        }

        /* 当前激活页面的导航栏链接样式 */
        .container .navbar a.active {
            box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
            background-color: rgba(255, 255, 255, 0.1);
        }

        /* 淡入动画关键帧 */
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* 页面标题样式 */
        .page-title {
            text-align: center;
            margin: 20px 0;
            font-size: 28px;
            font-weight: 600;
            color: #333;
            position: relative;
        }

        .page-title::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 100px;
            height: 4px;
            background: linear-gradient(45deg, #0084ff, #00c3ff);
            border-radius: 2px;
        }

        /* 指标卡片容器 */
        .metrics-container {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin: 30px 0;
            flex-wrap: wrap;
        }

        /* 指标卡片样式 */
        .metric-card {
            background: white;
            border-radius: 12px;
            padding: 20px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            width: 220px;
            text-align: center;
            transition: all 0.3s ease;
            animation: fadeIn 0.8s ease forwards;
            opacity: 0;
        }

        .metric-card:nth-child(1) { animation-delay: 0.1s; }
        .metric-card:nth-child(2) { animation-delay: 0.2s; }
        .metric-card:nth-child(3) { animation-delay: 0.3s; }
        .metric-card:nth-child(4) { animation-delay: 0.4s; }

        .metric-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
        }

        .metric-icon {
            font-size: 36px;
            margin-bottom: 10px;
            color: #0084ff;
        }

        .metric-value {
            font-size: 24px;
            font-weight: 600;
            color: #333;
        }

        .metric-label {
            font-size: 16px;
            color: #666;
            margin-top: 5px;
        }

        /* 图片容器样式 */
        .image-container {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 30px;
            padding: 30px;
            background: rgba(255, 255, 255, 0.8);
            border-radius: 20px;
            margin: 20px;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
        }

        .image-container:hover {
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
        }

        .image-item {
            position: relative;
            overflow: hidden;
            border-radius: 12px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
            transition: all 0.3s ease;
            background: white;
            padding: 15px;
        }

        .image-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
        }

        .image-item img {
            width: 100%;
            height: auto;
            border-radius: 8px;
            transition: all 0.3s ease;
        }

        .image-item:hover img {
            transform: scale(1.02);
        }

        /* 图片描述样式 */
        .image-description {
            margin-top: 15px;
            text-align: center;
            font-size: 18px;
            font-weight: 500;
            color: #333;
        }

        /* 响应式设计 */
        @media (max-width: 1024px) {
            .image-container {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 768px) {
            .container .navbar {
                padding: 0 20px;
                gap: 10px;
            }
            
            .container .navbar a {
                padding: 10px 15px;
                font-size: 16px;
            }
            
            .image-container {
                margin: 15px;
                padding: 20px;
            }
            
            .metrics-container {
                padding: 0 15px;
            }
            
            .metric-card {
                width: calc(50% - 10px);
            }
        }
    </style>
</head>

<body>

    <div class="container">
        <!-- 导航栏 -->
        <div class="navbar">
<!--            <a href="/MainPagehtml/MainPage.html" class="navbar-left">首页</a>
            <a href="/analysis">情感分析</a>
            <a href="/MainPagehtml/CorpusImport.html">语料导入</a>
            <a href="/MainPagehtml/CorpusModify.html">语料修改</a>
            <a href="/MainPagehtml/CorpusQuery.html">语料查询</a>-->
            <a href="/MainPagehtml/UserCreate.html">用户管理</a>
            <a href="/MainPagehtml/ModelCorpus.html">模型语料</a> 
            <a href="/MainPagehtml/ModelShow.html">模型效果</a>
        </div>
    </div>

    <!-- 页面标题 -->
    <h1 class="page-title">模型效果分析</h1>

    <!-- 模型指标卡片 -->
    <div class="metrics-container">
        <div class="metric-card">
            <div class="metric-icon"><i class="fa fa-line-chart"></i></div>
            <div class="metric-value">93.0%</div>
            <div class="metric-label">准确率</div>
        </div>
        <div class="metric-card">
            <div class="metric-icon"><i class="fa fa-check-circle"></i></div>
            <div class="metric-value">88.0%</div>
            <div class="metric-label">精确率</div>
        </div>
        <div class="metric-card">
            <div class="metric-icon"><i class="fa fa-heart"></i></div>
            <div class="metric-value">85.0%</div>
            <div class="metric-label">召回率</div>
        </div>
        <div class="metric-card">
            <div class="metric-icon"><i class="fa fa-balance-scale"></i></div>
            <div class="metric-value">87.0%</div>
            <div class="metric-label">F1值</div>
        </div>
    </div>

    <!-- 图片容器 -->
    <div class="image-container">
        <div class="image-item">
            <img src="../pictures/model_image1.jpg" alt="模型损失值曲线图">
            <div class="image-description">模型损失值曲线图</div>
        </div>
        <div class="image-item">
            <img src="../pictures/model_image2.jpg" alt="模型准确率曲线图">
            <div class="image-description">模型准确率曲线图</div>
        </div>
        <div class="image-item">
            <img src="../pictures/model_image3.png" alt="各类情感标签评估指标柱状图">
            <div class="image-description">各类情感评估指标柱状图</div>
        </div>
        <div class="image-item">
            <img src="../pictures/model_image4.png" alt="卷积神经网络模型评估指标条形图">
            <div class="image-description">卷积神经网络模型评估指标条形图</div>
        </div>
    </div>

    <script>
        // 导航栏激活状态
        const currentUrl = window.location.href;
        const navLinks = document.querySelectorAll('.navbar a');
        navLinks.forEach(link => {
            if (currentUrl.includes(link.getAttribute('href'))) {
                link.classList.add('active');
            }
        });

        // 添加滚动动画
        window.addEventListener('scroll', function() {
            const elements = document.querySelectorAll('.metric-card');
            elements.forEach(element => {
                const position = element.getBoundingClientRect();
                // 当元素进入视口时添加动画
                if(position.top < window.innerHeight && position.bottom >= 0) {
                    element.style.opacity = '1';
                    element.style.transform = 'translateY(0)';
                }
            });
        });
    </script>

</body>

</html>
